﻿@{
    ViewBag.Title = "外单位人员";
    Layout = "~/Views/Shared/_LayoutForEUI.cshtml";
}
<table id="Outsiders_Index_grid" class="easyui-datagrid" style="width:100%;" title="用户列表" data-options="
       rownumbers:true,
       singleSelect:false,
       autoRowHeight:false,
       pagination:true,
       fitColumns:true,
       fit:true,
       striped:true,
       checkOnSelect:false,
       selectOnCheck:false,
       collapsible:false,
       toolbar:'#Outsiders_Index_tb',
       pageSize: @SGArchiveSystem7x.Models.CCommonsModels.PageSize,
       pageList:[10,15,20]">
    <thead>
        <tr>
            <th field="USER_NAME" width="100" align="center">已结束</th>
            <th field="USER_NAME" width="100" align="center">登记时间</th>
            <th field="USER_REALNAME" width="100" align="center">姓名</th>
            <th field="USER_SEX" width="50" align="center">性别</th>
            <th field="USER_PHONE" width="100" align="center">联系电话</th>
            <th field="USER_V01" width="100" align="center">电子邮箱</th>
            <th field="DP_NAME" width="100" align="center">部门</th>
            <th field="USER_V02" width="100" align="center">职位</th>
            <th field="ROLE_NAME" width="100" align="center">角色名称</th>
            <th data-options="field:'USER_DATE',width:150, align:'center'">建立时间</th>
            <th data-options="field:'USER_STATUS',width:80, align:'center'">是否启用</th>
            <th field="USER_REMARK" width="100" data-options="align:'center'">备注</th>
            <th field="USER_ID" width="80" data-options="align:'center'">编辑</th>
            <th field="USER_ID2" width="80" data-options="align:'center'">是否结束</th>
        </tr>
    </thead>
</table>
<div id="Outsiders_Index_tb" style="padding:2px 5px;">
    <input class="easyui-textbox" type="text" id="txtName" name="txtName" style="width:200px;" label="系统账号:" labelwidth="60px" labelalign="right" />
    <select id="cmbStatus" class="easyui-combobox" name="cmbStatus" style="width:200px;" label="是否启用:" labelwidth="60px" labelalign="right" editable="false" panelHeight="auto">
        <option value="-1">全部</option>
        <option value="0">停用</option>
        <option value="1">启用</option>
    </select>
    <select id="cmbRole" class="easyui-combobox" name="cmbRole" style="width:200px;" label="所属角色:" labelwidth="60px" labelalign="right" editable="false" panelHeight="auto">
        <option value="-1">全部</option>

    </select>
    <select id="cmbDept" class="easyui-combobox" name="cmbDept" style="width:200px;" label="所属部门:" labelwidth="60px" labelalign="right" editable="false" panelHeight="auto">
        <option value="-1">全部</option>
    </select>
    <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-search" style="width: 90px" onclick="queryUser()">查询</a>
    <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-newadd" style="width: 90px" onclick="AddOutsiders()">添加</a>
</div>
<div id="Outsiders_Index_dialogDj" class="easyui-dialog" title="外单位人员登记" style="width:500px;height:310px"
     data-options="iconCls:'icon-id',modal:true,resizable:false,minimizable:false,maximizable:false,collapsible:false,
     buttons:'#Outsiders_Index_dialogDj_Buttons'">
    <div style="padding:10px 20px 10px 20px">
        <div class="alert alert-success" id="Outsiders_Index_dialogDj_returnOK" style="display:none">
            <div class="alert-icons"></div>
            <b>成功!</b>保存数据成功!
        </div>
        <div style="padding-bottom:10px">
            <input type="text" class="easyui-textbox" style="width:48%" label="姓名：" labelalign="right" labelwidth="70px" id="Outsiders_Index_txtName" />
            <select class="easyui-combobox" style="width:48%" label="性别：" labelalign="right" labelwidth="70px" id="Outsiders_Index_cmbSex">
                <option value="男">男</option>
                <option vlaue="女">女</option>
            </select>
        </div>
        <div style="padding-bottom:10px">
            <input type="text" class="easyui-textbox" style="width:48%" label="身份证号：" labelalign="right" labelwidth="70px" id="Outsiders_Index_txtCard" />
            <input type="text" class="easyui-textbox" style="width:48%" label="联系电话：" labelalign="right" labelwidth="70px" id="Outsiders_Index_txtPhone" />
        </div>
        <div style="padding-bottom:10px">
            <input type="text" class="easyui-textbox" style="width:96%" label="单位：" labelalign="right" labelwidth="70px" id="Outsiders_Index_txtDw" />
        </div>
        <div style="padding-bottom:10px">
            <select class="easyui-combobox" style="width:48%" label="查档原因：" labelalign="right" labelwidth="70px" id="Outsiders_Index_cmbType">
                <option value="男">男</option>
                <option vlaue="女">女</option>
            </select>
        </div>
        <div style="padding-bottom:10px">
            <input type="text" class="easyui-textbox" style="width:96%" label="备注：" labelalign="right" labelwidth="70px" id="Outsiders_Index_txtRemark" />
        </div>

    </div>
</div>
<div id="Outsiders_Index_dialogDj_Buttons">
    <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-newok'" onclick="Outsiders_Index_dialogDj_returnShow()" style="width:80px">Save</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-newclose'" onclick="javascript:$('#dlg').dialog('close')" style="width:80px">Close</a>
</div>
<script>
    function Outsiders_Index_dialogDj_returnShow() {
        document.getElementById('Outsiders_Index_dialogDj_returnOK').style.display = '';
    }
</script>

